﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CKS2320.Common.Transfer
{
    public static class TransferDic
    {
        public static string? GetMessage(string messageCode, string languageCode = "zh")
        {
            string? message = string.Empty;
            switch (languageCode.ToLower())
            {
                //这里兼容一下CN
                case "cn":
                case "zh":
                    message = messageCode;
                    break;
                case "en":
                    message = DetectionTransferEN.ResourceManager.GetString(messageCode);
                    break;
                case "es":
                    message = DetectionTransferES.ResourceManager.GetString(messageCode);
                    break;
                default:
                    message = messageCode;
                    break;
            }
            return message;
        }
    }
}
